package com.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 用户表简化
 * </p>
 *
 * @author sly
 * @since 2024-01-10
 */
@Getter
@Setter
@TableName("t_user_test")
@ApiModel(value = "UserTestEntity对象", description = "用户表简化")
public class UserTestEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("昵称")
    @TableField("nickName")
    private String nickName;

    @ApiModelProperty("用户名")
    @TableField("userName")
    private String userName;

    @ApiModelProperty("密码")
    @TableField("password")
    private String password;

    @ApiModelProperty("手机号")
    @TableField("phone")
    private String phone;

    @ApiModelProperty("邮箱")
    @TableField("email")
    private String email;

    @ApiModelProperty("性别")
    @TableField("userGender")
    private Integer userGender;

    @ApiModelProperty("用户简介")
    @TableField("userIntroduction")
    private String userIntroduction;

    @ApiModelProperty("封面")
    @TableField("userCover")
    private String userCover;

    @ApiModelProperty("创建时间")
    @TableField("createTime")
    private Date createTime;

    @ApiModelProperty("更新时间")
    @TableField("updateTime")
    private Date updateTime;

    @ApiModelProperty("逻辑删除")
    @TableField("isDel")
    private Integer isDel;


    // 关注数
    @TableField(exist = false)
    private Integer userFollow;
    // 粉丝数
    @TableField(exist = false)
    private Integer userFans;
    // 收藏数
    @TableField(exist = false)
    private Integer userCollection;
    // 播放数
    @TableField(exist = false)
    private Integer videoPlayCount;
    // 点赞数
    @TableField(exist = false)
    private Integer videoCollectionCount;

    // 是否已经关注
    @TableField(exist = false)
    private Integer hasFollow;
}
